body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 99vh;
    background: var(--vt-c-bg);
}

h1 {
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;
    color: var(--vt-c-text-1);
}

h2 {
    clear: both;
    margin: 1.6em 0 .6em;
    font-weight: 500;
    color: var(--vt-c-text-1);
}

.component-page-container {
    display: flex;
    flex: 1;
    margin-top: 40px;
}

.component-page-container-info {
    position: relative;
    flex: 1;
    min-width: 500px;
    padding: 0 150px 32px 64px;
}

.component-page-container-menu {
    position: sticky;
    top: 0;
    align-self: flex-start;
    min-width: 222px;
}

.component-page-container-menu-list {
    width: 100%;
    height: 100%;
    border-right: 1px solid var(--vt-c-divider-light2);
}

.component-page-container-menu-list-li {
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 40px;
    margin-top: 4px;
    margin-bottom: 8px;
    padding: 0 40px;
    line-height: 40px;
    color: var(--vt-c-text-1);
}

.component-page-container-menu-list-active {
    color: var(--hover-color);
    background-color: #ccdcf7;
}

.component-page-container-menu-list-li:hover {
    color: var(--hover-color);
}

.component-page-container-menu-list-li-key {
    font-size: 14px;
}

.component-page-container-menu-list-li-title {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    opacity: .7;
}

.web-empty-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.component-page-container-info .web-loading-mask-custom {
    position: fixed;
    top: 70px;
    left: 223px;
    display: none;
}

.code-container {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--hover-color);
    border-radius: 2px;
}

.code-container .code-title {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 18px 24px 12px;
    border-top: 1px solid var(--vt-c-divider-light2);
}

.code-container .code-btn {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 12px 0;
    opacity: .7;
    border-top: 1px dashed var(--vt-c-divider-light2);
}

.code-container .code-btn img {
    width: 16px;
    height: 16px;
    transition: transform 0.5s;
}

.code-container .code-btn img:hover {
    cursor: pointer;
    transform: scale(1.5);
}

.code-container .code-container-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    padding: 42px 24px 50px;
    color: var(--vt-c-text-1);
}

.code-container .code-title .code-title-text {
    position: absolute;
    top: -14px;
    left: 14px;
    display: inline-block;
    padding: 0 10px;
    color: var(--vt-c-text-1);
    background: var(--vt-c-bg);
}

.code-container .code-highlight-wrapper {
    overflow-x: auto;
    padding: 16px 32px;
    white-space: nowrap;
    background-color: var(--vt-c-bg2);
    border-top: 1px dashed var(--vt-c-divider-light2);
}

.code-title-attention {
    margin: 1em 0;
    padding-inline-start: 0.8em;
    font-size: 90%;
    color: var(--vt-c-text-2);
    border-left: 4px solid var(--vt-c-bg-mute2);
    -webkit-padding-start: 0.8em;
}

/* API表格样式 */
.api-table-container {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid var(--hover-color);
}

.api-table-container th {
    padding: 12px 16px;
    font-weight: normal;
    color: #fff;
    text-align: left;
    word-break: keep-all;
    background-color: var(--red-color);
    border: 1px solid #f38cab;
}

.api-table-container td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--vt-c-text-1);
    border: 1px solid #f38cab;
}

.api-table-container tbody tr:hover {
    background-color: #fa9fba;
}

.api-table-container tbody tr:hover td {
    color: var(--text-color);
}

.api-table-container tbody tr .code {
    color: var(--red-color) !important;
}

/* 跳转ul样式 */
.code-link-list {
    position: sticky;
    top: 10px;
    right: 40px;
    align-self: flex-start;
}

.code-link-list li {
    max-width: 105px;
    padding: 0 0 4px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--vt-c-text-1);
    border-left: 1px solid var(--vt-c-divider-light2);
}

.code-link-list li:hover {
    cursor: pointer;
    color: var(--hover-color);
}

@media only screen and (max-width: 992px) {
    .code-link-list {
        display: none;
    }
}